package remoting;
import model.response.*;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface WXPayRemoting {

    /**
     * 统一下单
     * @param body
     * @return
     */
    @POST("/pay/unifiedorder")
    Call<WXPayResponse> unifiedOrder(@Body RequestBody body);

    /**
     * 申请退款
     * @param body
     * @return
     */
    @POST("/secapi/pay/refund")
    Call<WXPayRefundResponse> refund(@Body RequestBody body);

    /**
     * 订单查询
     * @param body
     * @return
     */
    @POST("/pay/orderquery")
    Call<WXOrderQueryResponse> query(@Body RequestBody body);

    /**
     * 退款查询
     * @param body
     * @return
     */
    @POST("/pay/refundquery")
    Call<WXRefundQueryResponse> refundQuery(@Body RequestBody body);

    /**
     * 交易关单
     * @param body
     * @return
     */
    @POST("/pay/closeorder")
    Call<WXPayCloseResponse> closeOrder(@Body RequestBody body);

    /**
     * 沙箱环境获取签名key接口
     * @param body
     * @return
     */
    @POST("/sandboxnew/pay/getsignkey")
    Call<WXSignkeyResponse> getSignKey(@Body RequestBody body);
}
